Skip to content

Wire TLSSocket to crypto.X509Certificate - #231

Merged
kevinresol merged 1 commit into
HaxeFoundation:masterfrom
kevinresol:chore/cross-wiring-tls-x509
Jul 14, 2026
Merged

Wire TLSSocket to crypto.X509Certificate#231
kevinresol merged 1 commit into
HaxeFoundation:masterfrom
kevinresol:chore/cross-wiring-tls-x509

Conversation

@kevinresol

Copy link
Copy Markdown
Contributor

Summary

  • Type TLSSocket.getPeerX509Certificate / getX509Certificate as Null<js.node.crypto.X509Certificate> instead of Any
  • Remove resolved TODO(section-3) placeholders now that the crypto audit exposes X509Certificate
  • Document null returns when no certificate is present or the socket is destroyed

Test plan

  • haxe build.hxml succeeds
  • Spot-check that js.node.crypto.X509Certificate remains exported from crypto

Made with Cursor

Replace Any stubs and section-3 TODOs now that the crypto audit lands the shared type.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kevinresol
kevinresol merged commit 6101173 into HaxeFoundation:master Jul 14, 2026
9 checks passed
@kevinresol
kevinresol deleted the chore/cross-wiring-tls-x509 branch July 15, 2026 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant